package com.sunlands.qdcy.tongzhuo.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;

import java.util.Date;

/**
 * Created with meng.
 * User: meng5
 * Date: 2019-06-25
 * Description:
 */
@Data
@JsonSerialize
@ApiModel(value = "消息列表二级页使用")
@Builder
public class ForwardMessageVO {

    @ApiModelProperty(value = "转发的用户Id")
    private Long fromUserId;

    @ApiModelProperty(value = "转发的用户昵称")
    private String fromUserName;

    @ApiModelProperty(value = "转发的用户头像")
    private String fromUserAvatarUrl;

    @ApiModelProperty(value = "转发时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    @ApiModelProperty(value = "转发的对象类型：1-日记，3-评论/回复")
    private Integer type;

    @ApiModelProperty(value = "对象id，当type=1时，是日记id;当type=3时，是评论id")
    private Long targetId;

    @ApiModelProperty(value ="转发后新生成的id")
    private Long resultId;

    @ApiModelProperty(value = "转发位置：1-站内，2-站外微信，3-我的日记")
    private Integer station;

    @ApiModelProperty(value = "被转发人的用户id")
    private Long targetUserId;

    @ApiModelProperty(value = "被转发的内容：根据type动态查询，可以是日记/评论回复")
    private String targetContent;

    @ApiModelProperty(value = "当转发到我的日记时使用，存放转发人的内容")
    private String forwardMessage;


}